/*******************************************************************************
 * Copyright (c) 2008 Smart Mai(smardio@gmail.com).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Smart Mai(smardio@gmail.com) - initial API and implementation
 ******************************************************************************/
package com.smartdio.company;

import java.net.URL;

import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.resource.ImageDescriptor;

/**
 * @author smart
 * 
 */
public class Resources {

	// 下面是工具栏的图标
	static final public String TOOL_ADD = "icons/etool16/add.png";
	static final public String TOOL_EDIT = "icons/etool16/edit.png";
	static final public String TOOL_REMOVE = "icons/etool16/remove.png";

	// 下面是视图的图标
	static final public String VIEW_COMPANY = "icons/eview16/company.png";
	static final public String VIEW_DEPARTMENT = "icons/eview16/department.png";
	
	static final public String VIEW_PERSON = "icons/eview16/person.png";
	
	static final public String PERSPECTIVE_PERSON = "icons/eview16/person_perspective.png";

	// 下面是对话框和向导的图标
	static final public String WIZARD_COMPANY_NEW = "icons/wizban/company_new_wiz.png";
	static final public String WIZARD_COMPANY_EDIT = "icons/wizban/company_edit_wiz.png";
	static final public String WIZARD_DEPARTMENT_NEW = "icons/wizban/depart_new_wiz.png";
	static final public String WIZARD_DEPARTMENT_EDIT = "icons/wizban/depart_edit_wiz.png";

	// 下面是数据对象图标
	static final public String OBJ_DEPARTMENT = "icons/obj16/depart_obj.png";
	static final public String OBJ_COMPANY = "icons/obj16/company_obj.png";
	
	static final public String OBJ_MALE = "icons/obj16/male.png";
	static final public String OBJ_FEMALE = "icons/obj16/female.png";

	static public ImageDescriptor createImageDescriptorFor(String id) {
		URL url = Platform.getBundle(Activator.PLUGIN_ID).getEntry(id);
		return ImageDescriptor.createFromURL(url);
	}
}
